package com.sfac.day02.modules.test.service;

import com.github.pagehelper.PageInfo;
import com.sfac.day02.modules.common.entity.ResultBean;
import com.sfac.day02.modules.common.entity.SearchBean;
import com.sfac.day02.modules.test.entity.City;

import java.util.List;

public interface CityService {
    //增加city
    public abstract ResultBean<City> addCity(City city);
    //修改city
    public abstract ResultBean<City> updateCity(City city);
    //通过id删除city
    public abstract ResultBean<City> deleteCityById(Integer cityId);
    //通过id查看city
    public abstract ResultBean<City> selectCityByCityId(Integer cityId);
/*    //联表查询接口
    public ResultBean<City> getCityByCityId(int cityId);*/
    //多条件分页查询
    public PageInfo<City> getgetCitiesBySearchBean(SearchBean searchBean);
}
